package com.sfexpress.tools.entity;

/**
 * 
 * MysqlConnInfo构建者
 * 
 * @author CrazyPig
 *
 */
public class MysqlConnInfoBuilder {
	
	private String host;
	private String port;
	private String user;
	private String password;
	private String db;
	
	public MysqlConnInfoBuilder host(String host) {
		this.host = host;
		return this;
	}
	
	public MysqlConnInfoBuilder port(String port) {
		this.port = port;
		return this;
	}
	
	public MysqlConnInfoBuilder user(String user) {
		this.user = user;
		return this;
	}
	
	public MysqlConnInfoBuilder password(String password) {
		this.password = password;
		return this;
	}
	
	public MysqlConnInfoBuilder db(String db) {
		this.db = db;
		return this;
	}
	
	public MysqlConnInfo build() {
		return new MysqlConnInfo(host, port, user, password, db);
	}
}
